package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.Fragmentary;

import java.util.List;
import java.util.Map;

public interface smjFragmentaryService {
    /**
     * 添加零星劳务单
     * @param apply_date
     * @param p_id
     * @param type
     * @param handler_id
     * @param comment
     * @param attach_ids
     * @return
     */
    String AddFragmentary(String apply_date, String p_id, String type, String handler_id, String comment, String attach_ids);

    /**
     * 添加工程量清单
     * @param fragmentary_id
     * @param work_content
     * @param unit
     * @param unit_price
     * @param number
     * @return
     */
    void AddWorkList(String fragmentary_id, String work_content, String unit, String unit_price, String number);

    /**
     * 发起审批
     * @param fragmentary
     * @return
     */
    Integer FlowFragmentary(Fragmentary fragmentary);

    /**
     * 查看零星劳务列表
     * @param params
     * @return
     */
    IPage<Map<String, Object>> ListFragmentary(Map<String, String> params);

    /**
     * 获取零星劳务工程量清单
     * @param fragmentary_id
     * @return
     */
    List<Map<String,Object>> getWorkList(String fragmentary_id);

    /**
     * 获取审批流程
     * @param id
     * @return
     */
    List<Map<String, Object>> getfromaudit(String id);
}
